import Vue from 'vue'

// 引入组件
import { Toast, Notify } from "vant";
Vue.use(Toast);
Vue.use(Notify);


class MyVant {

  loading(message = '加载中...') {
    Toast.loading({
      // 持续加载中
      duration: 0,
      message,
      // 透明蒙层
      forbidClick: true,
    });
  }

  close(){
    Toast.clear()
  }


}

export default new MyVant